package com.monster.service;

import com.monster.domain.Permission;
import com.monster.domain.Role;

import java.util.List;

public interface IRoleService {
    List<Role> findAll() throws Exception;

    void save(Role role)throws Exception;

    Role findById(String roleId)throws Exception;

    List<Permission> findOtherPermission(String roleId)throws Exception;

    void addPermissionToRole(String roleId, String[] permissionIds)throws Exception;
}
